package com.work.service.impl;

import com.work.bean.HwStuAttach;
import com.work.dao.HwStuAttachDao;
import com.work.dao.impl.HwStuAttachDaoImpl;
import com.work.service.HwStuAttachService;

import java.util.List;

public class HwStuAttachServiceImpl implements HwStuAttachService {
    HwStuAttachDao hwStuAttachDao = new HwStuAttachDaoImpl();
    public List<HwStuAttach> queryHwStuAttach() {
        return hwStuAttachDao.queryHwStuAttach();
    }

    public HwStuAttach queryHwStuAttachById(Integer id) {
        return hwStuAttachDao.queryHwStuAttachById(id);
    }

    public int saveHwStuAttach(HwStuAttach hwStuAttach) {
        return hwStuAttachDao.saveHwStuAttach(hwStuAttach);
    }

    public int updateHwStuAttach(HwStuAttach hwStuAttach) {
        return hwStuAttachDao.updateHwStuAttach(hwStuAttach);
    }

    public int deleteHwStuAttach(Integer id) {
        return hwStuAttachDao.deleteHwStuAttach(id);
    }
}
